import 'package:flutter/material.dart';
import 'package:navigate_demo/routes/app_router.dart';
import 'screens/home_screen.dart';

class MyApp extends StatelessWidget{
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Navigation Demo',
      theme: ThemeData(
        primarySwatch: Colors.cyan,
        scaffoldBackgroundColor: Colors.grey[100],
        textTheme: const TextTheme(
          titleLarge:TextStyle(fontSize: 24,fontWeight: FontWeight.bold),
          bodyMedium: TextStyle(fontSize: 16,color: Colors.black87),
        )
      ),
      home: const HomeScreen(),
      onGenerateRoute: AppRouter.generateRoute,
    );
  }

}